package com.ahaoyou;

import com.ahaoyou.service.UserService;
import com.spring.ConsumerApplication;

public class ConsumerSpringTest {

    public static void main(String[] args) {
        ConsumerApplication application = new ConsumerApplication(Config.class);
        UserService userService = (UserService) application.getBean("userService");
        userService.test();
        String a = "a";
        String b = "b";
        save(a, b);
        System.out.println(a);
        System.out.println(b);
    }

    private static void save(String a, String b) {
        String temp = a;
        a = b;
        b = temp;
    }

}
